/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.playground.core.service.impl;

import com.playground.core.entity.GameTitle;
import com.playground.core.entity.Invitation;
import com.playground.core.entity.Player;
import com.playground.core.service.InvitationService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author Tiago Peres
 */
@Service
public class InvitationServiceImpl implements InvitationService {
    
    public boolean answerInvitation(Invitation invitation, Player guest, boolean answer) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public Invitation createInvitation(Player host, List<Player> guests, GameTitle gameTitle) {
        if (!InvitationStatusUpdater.getInstance().isRunning()){
            InvitationStatusUpdater.getInstance().start();
        }
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public Invitation getInvitation(Player host) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public boolean removeInvitation(Invitation invitation) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public boolean waitForHostConfirmation(Invitation invitation) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
